package com.sairui.Xiaoruilib;

import android.content.Intent;

import org.apache.cordova.CordovaPlugin;
import org.apache.cordova.CallbackContext;

import org.json.JSONArray;
import org.json.JSONException;

/**
 * This class echoes a string called from JavaScript.
 */
public class XiaoRuiSdkPlu extends CordovaPlugin {

    @Override
    public boolean execute(String action, JSONArray args,final CallbackContext callbackContext) throws JSONException {
        if (action.equals("coolMethod")) {
            Intent intent=new Intent();
			intent.setAction("com.sairui.xiaoruiAct");
			cordova.getActivity().startActivity(intent);
			return true;
        }
        return super.execute(action, args, callbackContext);
    }
}
